import axios from 'axios';

const axios_base = axios.create({//服务器接口用axios，本地接口用axios_base
  baseURL: '',
});
axios.paramPost = axios.paramPost;//这样好看一点，，不然paramPost是白色的
axios_base.paramPost = axios.paramPost;

export default {
  vodInfo(data) {
    return axios.paramPost('/ClassList/vodInfo', data);
  },
  course_info(data){
    return axios.paramPost('/ClassList/kcmlList', data);
  },
  comment(data){
    return axios.paramPost('/ClassList/commentList', data);
  },
  //阿里云播放
  PlayAutha(data){
    return axios.paramPost('/video/getStsInfo',data)
  },
  publish(data){
    data.transFormData = 'info'
    return axios.paramPost('/ClassList/Comment',data)
  },
  joincar(data){
    return axios.paramPost('/WeChatOrder/shoppCat',data)
  },
}
